package com.sinba.common.business.action;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.opensymphony.xwork2.ActionSupport;
import com.sinba.common.business.entity.SharePriceTrendEntity;
import com.sinba.common.business.service.ISharePriceTrendService;
import com.sinba.common.dto.PageDTO;

@SuppressWarnings("serial")
public class SharePriceTrendAction extends ActionSupport{
	
	@Autowired
	private ISharePriceTrendService  sharePriceTrendService;
	private List<SharePriceTrendEntity> list = new ArrayList<SharePriceTrendEntity>();
	private String type;
	
	public List<SharePriceTrendEntity> getList() {
		return list;
	}
	public void setList(List<SharePriceTrendEntity> list) {
		this.list = list;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	public String findSharePriceTrend(){
		list = sharePriceTrendService.findSharePriceTrend(type);
		return SUCCESS;
	}
	
	
}
